import request from '@/utils/request'

const bobingService = {
    registerUser:(data) => {
        return request({
            url: `register`,
            method:'post',
            data
        })
    },
    loadPhotos:(data) =>{
        return request({
            url: `photos`,
            method:'post',
            data
        })
    },
    //开始博饼
    startBobing:(data) =>{
        return request({
            url: `start`,
            method:'post',
            data
        })
    },
    startactive:(data) =>{
        return request({
            url: `startactive`,
            method:'post',
            data
        })
    },
    getSerialNo:(num) =>{
        return request({
            url: `serialno/${num}`,
            method:'get',
        })
    },
    getPrizes:(code) =>{
        return request({
            url: `prizes/${code}`,
            method:'get',
        })
    },
    //退出
    getout:(code)=>{
        return request({
            url: `getout/${code}`,
            method:'delete',
        })
    },
    //排行
    ranking:() =>{
        return request({
            url: `rank`,
            method:'get',
        })
    }
}
export default bobingService;